/* Define to prevent recursive inclusion */
#define _MAIN_C_

/* Files include */

#include "platform.h"
#include "api_flash.h"

int main(void)
{
	PLATFORM_Init();	//Initialize configuration
	
	FlashApi_McuInit();
	
	CapApps_Init();
	
	Delay_ms(3000);
	while(1)
	{
		if( CapDataParaConfigFlag == true )
		{
			CapApps_paraDataCfgProc();
			
			CapDataParaConfigFlag = false;
		}
		if( CapSensorSampFlag == true )
		{
			CapApps_CapDataSampProc();
			CapSensorSampFlag = false;
		}
#ifdef LOW_POWER_MODE
		TimerLowPowerHandler();
#endif
	}
}



